#include <stdbool.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

bool isPrime(long long n)
{
    if(n < 2)
    {
        fprintf(stderr, "I don't know\n");
        exit(1);
    }
    if(n == 2)
        return true;

    double arg = sqrt(n);
    for (int i = 2; i <= arg; ++i)
    {
        if(n % i == 0)
            return false;        
    }
    return true;
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        fprintf(stderr, "./isPrime number\n");
        exit(1);
    }
    else
    {
        long long n = 0;
        sscanf(argv[1], "%lld", &n);
        
        if(isPrime(n))
            printf("isPrime\n");
        else
            printf("notPrime\n");
    }

    return 0;
}

